package com.wwj.core.wawa.service;

import com.github.pagehelper.Page;
import com.wwj.core.wawa.entity.PlayRecord;
import com.wwj.core.wawa.entity.Player;

import java.util.Map;

/**
 * Created by Administrator on 2017/11/3.
 */
public interface IPlayRecordService {
    Page<PlayRecord> findByPage(Map<String, Object> params, int offset, int limit);

    PlayRecord findById(Integer id);

    Page<PlayRecord> findByPageUserInfo(Map<String, Object> params, int offset, int limit) throws Exception;

    PlayRecord findByToken(String token) throws Exception;

    int updatePlayRecord(PlayRecord playRecord) throws Exception;

    int updatePlayRecordForResult(Player player, PlayRecord playRecord) throws Exception;

    @Deprecated
    int updatePlayRecordForStartGame(PlayRecord playRecord, String deviceId) throws Exception;
}
